package cn.xhc.head.controller;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import cn.xhc.users.pojo.AAdmins;
import cn.xhc.users.service.IUsersService;

@Controller
@RequestMapping("/head/admin")
public class AdminBackController {
	@Resource
	private IUsersService usersService;
	/**
	 * 管理员列表
	 * @return
	 */
	@RequestMapping("adminList")
	public String adminList(HttpServletRequest request){
		Map<String, Object> condMap = new HashMap<String,Object>();
		List<AAdmins> adminList = this.usersService.findCondListAdminService(null, condMap);
		request.setAttribute("adminList", adminList);
		return "head/admin/adminList";
	}

}
